<%@ page language="java" pageEncoding="UTF-8"%>
<div class="panel panel-default" ng-controller="UserMessageEditController">
	<div class="panel-heading">
		修改个人资料
	</div>
	<div class="panel-body">
		<form callback="save" validate>
			<div class="form-group">
				<label>
					头像
				</label><br/>
				
				<img class="media-object panel panel-default" style="width: 80px; height: 80px;cursor:pointer;" ng-src="{{user.headphoto | path}}"
					callback="changeHeadphoto" path="/upload/user/headphoto" message="'点击上传头像'" tooltip upload>
			</div>
			
			<div class="form-group">
				<label>
					用户名
				</label>
				<input type="text" class="form-control" name="username" ng-model="user.username" rule="required;">
			</div>
			
			<div class="form-group">
				<label>
					签名
				</label>
				<textarea type="text" name="signature" class="form-control" style="height:50px;" ng-model="user.signature" rule="required;"></textarea>
			</div>
			
			<div>
				<button type="submit" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-ok"/> 更新</button>
			</div>
		</form>
	</div>
</div>